From 4fbe918e1230d126a3b070bab6bed632d09a7373 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Sun, 18 Sep 2005 16:00:24 +0100 Subject: [PATCH] Move definition of xc and xend to avoid confusing pylint. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8bc3d1a1c0..9dc3bda8fb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -28,10 +28,10 @@ import time import threading import errno -import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() +import xen.lowlevel.xc from xen.util.blkif import blkdev_uname_to_file -from xen.xend.server import SrvDaemon; xend = SrvDaemon.instance() +from xen.xend.server import SrvDaemon from xen.xend.server.channel import EventChannel from xen.xend import sxp @@ -93,6 +93,12 @@ SIF_NET_BE_DOMAIN = (1<<5) SIF_TPM_BE_DOMAIN = (1<<7) +xc = xen.lowlevel.xc.new() + + +xend = SrvDaemon.instance() + + def domain_exists(name): # See comment in XendDomain constructor. xd = get_component('xen.xend.XendDomain') -- 2.30.2